<?xml version='1.0' encoding='UTF-8' ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <link rel="stylesheet" href="style.css" />
    <h:head>
        <title>Hoşgeldiniz</title>
    </h:head>

    <h:body>
        <div class ="header" >   <h3>   #{loginBean.fullname}, Hoşgeldiniz ! </h3>
            <div class ="userStatus" > 
            <h:form>
                <h:commandButton action= "#{WriterBean.logout}" value=" Çıkış " ></h:commandButton>
            </h:form>
            </div>
        </div>
        
        <div class ="listPaperList" > //bu kısımı kaldırıp denenbilir
        <h:outputText value="Makaleleriniz  " /> <br /><br /> 
                <h2><h:outputText value="Bir makale secin"/></h2>
                <h:outputLabel value="Tanımlı Makaleler:  " />
                <h:selectOneMenu value="#{loginBean.p.paper_ID}">
                <f:selectItems value="#{loginBean.getMyAllPapers()}" />
                </h:selectOneMenu>
                <br /><br />
        </div> 

        <h:form>
        <div class ="smallpanel">
        <h:outputText value="Makale eklemek için aşağıdaki formu doldurunuz" /> <br /><br />

        <h:outputLabel value=" Başlık : "/>
        <h:inputText id="nameinput" value="#{WriterBean.p.title}" /><br /><br />
             
        <h:outputLabel value=" Özet:" />
        <h:inputText value="#{WriterBean.p.summary}" /><br /><br />
        
        <h:outputLabel value=" Konu:" />
        <h:inputText value="#{WriterBean.p.topic}" /><br /><br />
        
        <h:outputLabel value="Anahtar Kelimeler:" />
        <h:inputSecret value="#{WriterBean.p.keywords}" /><br /><br />
        
        <h:commandButton value="Kayıt Ol" action="#{WriterBean.saveNewPaper}" onclick="KayitOk();"/>
        </div>
        </h:form>
        
        
       <script type="text/javascript">
        function KayitOk()
        {
           onclick=alert('kaydiniz yapildi!');
        }
        </script>
        
    </h:body>
</html>

